package com.wego.domain.query;

import com.wego.bean.LocalDateRange;
import com.wego.bean.base.BaseQuery;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 *
 * @author hc
 * @date 2025-09-06 10:20
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class UserQuery extends BaseQuery {
    /**
     * 昵称
     */
    private String nickname;

    /**
     * 账户
     */
    private String account;

    /**
     * 性别： 1男  2女  3未知
     */
    private Integer gender;

    /**
     * 生日
     */
    private LocalDateRange birthday;

    /**
     * 状态： 1正常  2功能受限  3 已删除
     */
    private Integer state;



    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin; //时间-开始
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end; //时间-结束

}
